package com.westos.userauth.domain;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class UserLoginSecurityGroup {
    private String userLoginId;   //用户登录id
    private String groupId;   //组id
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date fromDate;    //开始时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date thruDate;    //通过时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedStamp; //最后更新时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedTxStamp; //最后更新Tx时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdStamp; //创建时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdTxStamp;//创建Tx时间

    public UserLoginSecurityGroup() {
    }

    public UserLoginSecurityGroup(String userLoginId, String groupId, Date fromDate, Date thruDate) {
        this.userLoginId = userLoginId;
        this.groupId = groupId;
        this.fromDate = fromDate;
        this.thruDate = thruDate;
    }

    public String getUserLoginId() {
        return userLoginId;
    }

    public void setUserLoginId(String userLoginId) {
        this.userLoginId = userLoginId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public Date getFromDate() {
        return fromDate;
    }

    public void setFromDate(Date fromDate) {
        this.fromDate = fromDate;
    }

    public Date getThruDate() {
        return thruDate;
    }

    public void setThruDate(Date thruDate) {
        this.thruDate = thruDate;
    }

    public Date getLastUpdatedStamp() {
        return lastUpdatedStamp;
    }

    public void setLastUpdatedStamp(Date lastUpdatedStamp) {
        this.lastUpdatedStamp = lastUpdatedStamp;
    }

    public Date getLastUpdatedTxStamp() {
        return lastUpdatedTxStamp;
    }

    public void setLastUpdatedTxStamp(Date lastUpdatedTxStamp) {
        this.lastUpdatedTxStamp = lastUpdatedTxStamp;
    }

    public Date getCreatedStamp() {
        return createdStamp;
    }

    public void setCreatedStamp(Date createdStamp) {
        this.createdStamp = createdStamp;
    }

    public Date getCreatedTxStamp() {
        return createdTxStamp;
    }

    public void setCreatedTxStamp(Date createdTxStamp) {
        this.createdTxStamp = createdTxStamp;
    }
}

